#/meshes/default/meshgateways/the-gateway/_rules 200
# This test is likely to evolve as meshgateway support for meshhttproute is not currently fully supported
type: MeshTimeout
name: on-route
mesh: default
spec:
  targetRef:
    kind: MeshHTTPRoute
    name: the-http-route
  to:
    - targetRef:
        kind: Mesh
      default:
        http:
          requestTimeout: 15s
---
type: MeshTimeout
name: on-service
mesh: default
spec:
  targetRef:
    kind: Mesh
  to:
    - targetRef:
        kind: MeshService
        name: backend_kuma-demo_svc_3001
      default:
        http:
          requestTimeout: 20s
---
type: MeshHTTPRoute
name: the-http-route
mesh: default
spec:
  targetRef:
    kind: MeshGateway
    name: the-gateway
  to:
    - targetRef:
        kind: Mesh
      rules:
        - matches:
            - path:
                type: PathPrefix
                value: /api/v2
          default:
            backendRefs:
              - kind: MeshServiceSubset
                name: backend_kuma-demo_svc_3001
                tags:
                  version: "1.0"
---
type: MeshHTTPRoute
name: the-other-http-route
mesh: default
spec:
  targetRef:
    kind: MeshGateway
    name: the-gateway
  to:
    - targetRef:
        kind: Mesh
      rules:
        - matches:
            - path:
                type: PathPrefix
                value: /api
          default:
            backendRefs:
              - kind: MeshServiceSubset
                name: other-svc
                tags:
                  version: "1.0"
              - kind: MeshServiceSubset
                name: other-svc-2
                tags:
                  version: "1.0"
---
type: MeshGateway
name: the-gateway
mesh: default
selectors:
  - match:
      kuma.io/service: gw-1
conf:
  listeners:
    - port: 8080
      protocol: HTTP
